package com.xn.app.muying.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

import com.xn.app.muying.R;

import org.w3c.dom.Text;

/**
 * 搜索.热门.历史记录跳转界面
 * Created by gaoge on 2016/11/10.
 */

public class SeekFragment extends Fragment {
    //显示列表数据的listview
    private ListView listview = null;
    //无数据显示页面
    private LinearLayout no_data_linearlayout = null;

    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.seek_fragment, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        //初始化组件
        initialization(view);
    }

    /**
     * 初始化组件，并给相应控件添加单击事件
     * @param view
     */
    private void initialization(View view) {
        listview = (ListView) view.findViewById(R.id.listview);
        no_data_linearlayout = (LinearLayout) view.findViewById(R.id.no_data_linearlayout);
        no_data_linearlayout.setVisibility(LinearLayout.VISIBLE);
    }
}
